package com.jsmile.cloud.authc.sys.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2019年11月01日 08:52:39
 */
@ApiModel
@Data
@TableName("t_op_sys_log")
public class SysLog extends Model<SysLog> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "日志标题")
    private String title;
    @ApiModelProperty(value = "系统id(服务id)")
    private String sysNo;
    @ApiModelProperty(value = "日志类型")
    private String logType;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "用户名称")
    private String userName;
    @ApiModelProperty(value = "ip地址")
    private String ip;
    @ApiModelProperty(value = "操作系统")
    private String os;
    @ApiModelProperty(value = "浏览器")
    private String browser;
    @ApiModelProperty(value = "浏览器版本号")
    private String browserVersion;
    @ApiModelProperty(value = "是否成功 0否 1是")
    private Integer reqOk;
    @ApiModelProperty(value = "请求方式")
    private String reqMethod;
    @ApiModelProperty(value = "请求参数")
    private String reqParam;
    @ApiModelProperty(value = "请求地址")
    private String reqUrl;
    @ApiModelProperty(value = "返回值")
    private String resParam;
    @ApiModelProperty(value = "记录人")
    private String createBy;
    @ApiModelProperty(value = "记录时间")
    private java.util.Date createTime;
    @ApiModelProperty(value = "描述")
    private String remark;
    @ApiModelProperty(value = "耗时")
    private String timeConsuming;
    @ApiModelProperty(value = "异常信息")
    private String exception;
    @ApiModelProperty(value = "租户id")
    private Long tenantId;

    @ApiModelProperty(value = "日志类型名称")
    @TableField(exist = false)
    private String logTypeName;
    @ApiModelProperty(value = "日志类型名称")
    @TableField(exist = false)
    private String reqOkName;

}
